//
//  HXShopingTopVC.m
//  ZCooking
//
//  Created by 韩旭 on 16/9/20.
//  Copyright © 2016年 HX_. All rights reserved.
//

#import "HXShopingTopVC.h"
#import "HX_Macro.h"

@interface HXShopingTopVC ()

@end

@implementation HXShopingTopVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor redColor];
    [self getNetWorking:self.netId];
}
- (void)getNetWorking:(NSString *)ID {
    NSString *url = @"http://api.izhangchu.com/";
    NSString *body = [NSString stringWithFormat:@"methodName=MallSpecial&version=4.3&id=%@&user_id=0&_time=&_signature=", ID];
    NSDictionary *dicHeader = @{};
    [HXNetTool postNetWithUrl:url body:body BodyStyle:HXBodyString Header:dicHeader Response:HXJSON Success:^(id result) {
        
        NSLog(@"%@", result);
    } Failure:^(NSError *error) {
        
        
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
